package com.blue.po.ai;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * AI聊天历史记录表
 *
 * @author cnj
 * @email 15696471158@163.com
 * @date 2024-08-23
 */
@Data
@TableName("ai_chat_history")
public class ChatHistoryPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "ID")
    private String id;

    @Schema(description = "会话名称")
    private String sessionNm;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者ID")
    private String creatorId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建商户ID")
    private String createMerId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private String createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新者ID")
    private String updaterId;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新商户ID")
    private String updateMerId;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "最近更新时间")
    private String updateTime;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "数据有效标识(0-有效,1-无效)")
    private String isFlag;


}
